package com.xinpu.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 销售员工表
 * </p>
 *
 * @author ayuan
 * @since 2021-06-11
 */
public class TSales extends Model<TSales> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父级编号
     */
    private Integer pid;

    /**
     * unionid
     */
    private String unionid;

    /**
     * openid
     */
    private String openid;

    /**
     * 部门编号
     */
    private Integer did;

    /**
     * 用户昵称
     */
    private String name;

    /**
     * 微信昵称
     */
    private String wxName;

    /**
     * 用户头像
     */
    private String portrait;

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    private String password;

    /**
     * 密码盐
     */
    private String salt;

    /**
     * 电话
     */
    private String phone;

    /**
     * 角色
     */
    private Integer role;

    /**
     * 金额
     */
    private BigDecimal price;

    /**
     * 状态0在职1离职
     */
    private Integer status;

    /**
     * 二维码
     */
    private String qr;

    /**
     * 推广二维码
     */
    private String eQr;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 备注
     */
    private String remark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWxName() {
        return wxName;
    }

    public void setWxName(String wxName) {
        this.wxName = wxName;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getQr() {
        return qr;
    }

    public void setQr(String qr) {
        this.qr = qr;
    }

    public String geteQr() {
        return eQr;
    }

    public void seteQr(String eQr) {
        this.eQr = eQr;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TSales{" +
        "id=" + id +
        ", pid=" + pid +
        ", unionid=" + unionid +
        ", openid=" + openid +
        ", did=" + did +
        ", name=" + name +
        ", wxName=" + wxName +
        ", portrait=" + portrait +
        ", account=" + account +
        ", password=" + password +
        ", salt=" + salt +
        ", phone=" + phone +
        ", role=" + role +
        ", price=" + price +
        ", status=" + status +
        ", qr=" + qr +
        ", eQr=" + eQr +
        ", tenantId=" + tenantId +
        ", remark=" + remark +
        "}";
    }
}
